//import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as elementplusicon from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'; // 导入中文语言包

//pinia仓库状态持久化
import persist from 'pinia-plugin-persistedstate';

const app = createApp(App)

app.use(createPinia().use(persist));
app.use(router)
app.use(ElementPlus, { locale: zhCn })
for(const [key,component] of Object.entries(elementplusicon)){
    app.component(key,component)
}

app.mount('#app')
